﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UcUserLogin.ascx.cs" Inherits="TheHeInfo.Master.UcUserLogin" %>
<%@ Register assembly="DevExpress.Web.v14.2, Version=14.2.3.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web" tagprefix="dx" %>
<style type="text/css">
  
    .auto-style5 { width: 145px; }
    
</style>

<div style="height: 58px;vertical-align: middle">
    <div style="float: left">
        <div>
            <dx:ASPxLabel ID="ASPxLabel1" runat="server" Text="Member Login:">
            </dx:ASPxLabel>
            <dx:ASPxHyperLink ID="lblNeedHelp" runat="server" Text="Need help?" />
        </div>
        <div style="float: left; width: 226px" align="right">
            <div style="margin:1px">
                <dx:ASPxTextBox ID="txtUserName" runat="server" Height="21px" Width="150px" Caption="User name" MaxLength="50">
                <ValidationSettings CausesValidation="True" Display="Dynamic">
                    <RequiredField IsRequired="True" />
                </ValidationSettings>
            </dx:ASPxTextBox>
            </div>
            <div style="margin: 1px"><dx:ASPxTextBox ID="txtPassword" runat="server" Password="True" Width="150px" Caption="Password" MaxLength="200">
                <ValidationSettings CausesValidation="True" Display="Dynamic">
                    <RequiredField IsRequired="True" />
                </ValidationSettings>
            </dx:ASPxTextBox></div>
            
        </div>
    </div>
    <div style="float: left;margin-right: 1px">
        <dx:ASPxCaptcha ID="ASPxCaptcha1" runat="server" Height="60px" Width="255px">
            <TextBoxStyle Width="80px" />
            <ValidationSettings ValidationGroup="captcha" ErrorText="Incorrect captcha">
            </ValidationSettings>
            <RefreshButton Position="Right" Text="Refresh" ImagePosition="Top">
            </RefreshButton>
            <TextBox LabelText="Captcha code:" />
            <ChallengeImage ForegroundColor="#000000" BorderWidth="0" Height="50" Width="100" BackgroundColor="White"></ChallengeImage>
        </dx:ASPxCaptcha>
    </div>  
    <div style="float: left;margin-right: 1px">
        <dx:ASPxButton ID="btLogin" runat="server" Height="62px" OnClick="btLogin_Click" Text="Login" Width="62px" Theme="Metropolis">
        </dx:ASPxButton>
    </div>
</div>
<dx:ASPxPopupControl ID="InvalidLoginPopup" runat="server" AutoUpdatePosition="True" CloseAction="CloseButton" HeaderText="Invalid Login" Height="125px" Pinned="True" PopupHorizontalAlign="WindowCenter" PopupVerticalAlign="WindowCenter" Width="329px" ClientInstanceName="InvalidLoginPopup">
    <ContentCollection>
        <dx:PopupControlContentControl runat="server">
            <table style="width: 100%;">
                <tr>
                    <td colspan="3">
                        <dx:ASPxLabel ID="ASPxLabel2" runat="server" Font-Size="Large" Text="User-name or password is incorrect.">
                        </dx:ASPxLabel>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">
                        <dx:ASPxHyperLink ID="lblPopupNeedHelp" runat="server" Text="Not sign up or forgot pasword!">
                        </dx:ASPxHyperLink>
                    </td>
                </tr>
                <tr>
                    <td colspan="3">&nbsp;</td>
                </tr>
                <tr>
                    <td>&nbsp;</td>
                    <td class="auto-style5">&nbsp;</td>
                    <td align="right">
                        <dx:ASPxButton ID="btPopupClose" runat="server" style="margin-left: 61px" Text="Close" CausesValidation="False" Width="100px" AutoPostBack="False">
                            <ClientSideEvents Click="function(s, e) {
	InvalidLoginPopup.Hide();
}" />
                        </dx:ASPxButton>
                    </td>
                </tr>
            </table>
        </dx:PopupControlContentControl>
    </ContentCollection>
</dx:ASPxPopupControl>